<?php


namespace App\controller;


class BaseController
{

    protected $content;

    protected $fd;

    protected $msg = "";

    protected $server;
    /**
     * @var \Swoole\Table
     */
    protected $table;

    public function __construct($content, $fd, \Swoole\Server $server)
    {
        $this->content = $content;
        $this->fd = $fd;
        $this->server = $server;
        $this->table = $this->server->table;
    }

    /**
     * @param string $msg
     */
    public function setMsg($msg)
    {
        $this->msg = $msg;
    }

    /**
     * @return string
     */
    public function getMsg()
    {
        return $this->msg;
    }


    public function returnPackData()
    {
        return $this->getMsg();
    }
}